package com.mdd.admin.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;

@Data
@ApiModel("系统消息(快点/快商/平台通知公告)创建参数")
public class SystemMsgCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "userId参数缺失")
    @ApiModelProperty(value = "接受的用户ID 0=全部用户")
    private Integer userId;

    @NotNull(message = "title参数缺失")
    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "图标")
    private String icon;

    @NotNull(message = "content参数缺失")
    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "扩展字段")
    private String extend;
    
    @ApiModelProperty(value = "1=快点消息 2=快商消息 3=平台公告")
    private Integer type;

}
